Skip to content
  • Categories
  • Recent
  • Tags
  • Popular
  • Users
  • Groups
  • Search
  • Get Qt Extensions
  • Unsolved
Collapse
Brand Logo
  1. Home
  2. Qt Development
  3. General and Desktop
  4. Qt Audio Recorder: How to fix a path to save recorded audio files
Forum Updated to NodeBB v4.3 + New Features

Qt Audio Recorder: How to fix a path to save recorded audio files

Scheduled Pinned Locked Moved Unsolved General and Desktop
2 Posts 2 Posters 690 Views
  • Oldest to Newest
  • Newest to Oldest
  • Most Votes
Reply
  • Reply as topic
Log in to reply
This topic has been deleted. Only users with topic management privileges can see it.
  • H Offline
    H Offline
    Houston
    wrote on last edited by
    #1

    I'm new to Qt and I'm using the example provided by Qt to develop an audio recorder.

    The requirements given is to make 6 radio channels, only 1 channel can be selected at the moment of recording. I'm wondering how I can fix a path for each of the channels to save the audio files recorded, and how to make the name of each file fixed (e.g message1.wav). Each time when there's a new recording in a particular channel, the old .wav file is to be replaced by the new one.

    Lastly, user has to be able to play the recordings on the panel instead of opening the path and run the .wav file.

    Once again I'm very new to all of this and I hope my description is understandable. As I said I'm using the Audio Recorder Example in Qt creator as a footstone, so you can guide me on which part of the code I have to change or add in some codes.

    Any amount of help would be appreciated. Thanks!![alt text](![image url](![image url](![image url](![image url](image url)))))

    jsulmJ 1 Reply Last reply
    0
    • H Houston

      I'm new to Qt and I'm using the example provided by Qt to develop an audio recorder.

      The requirements given is to make 6 radio channels, only 1 channel can be selected at the moment of recording. I'm wondering how I can fix a path for each of the channels to save the audio files recorded, and how to make the name of each file fixed (e.g message1.wav). Each time when there's a new recording in a particular channel, the old .wav file is to be replaced by the new one.

      Lastly, user has to be able to play the recordings on the panel instead of opening the path and run the .wav file.

      Once again I'm very new to all of this and I hope my description is understandable. As I said I'm using the Audio Recorder Example in Qt creator as a footstone, so you can guide me on which part of the code I have to change or add in some codes.

      Any amount of help would be appreciated. Thanks!![alt text](![image url](![image url](![image url](![image url](image url)))))

      jsulmJ Offline
      jsulmJ Offline
      jsulm
      Lifetime Qt Champion
      wrote on last edited by jsulm
      #2

      @Houston Hi!
      To store on desktop (you can use other locations, see documentation for QStandardPaths):

      QString desktop = QStandardPaths::writableLocation(QStandardPaths::DesktopLocation);
      int channel = 1;
      QString path = desktop + '/' + "message" + QString::number(channel) + ".wav";
      

      https://forum.qt.io/topic/113070/qt-code-of-conduct

      1 Reply Last reply
      2

      • Login

      • Login or register to search.
      • First post
        Last post
      0
      • Categories
      • Recent
      • Tags
      • Popular
      • Users
      • Groups
      • Search
      • Get Qt Extensions
      • Unsolved